<h1><%=raw I18n.t('main.title') %></h1>

<% @products.each do |product| -%>
<div class="entry">
  <%= image_tag(product.image_url) %>
  <h3><%= h product.title %></h3>
  <%= raw product.description %>
  <div class="price-line">
    <span class="price"><%=raw number_to_currency(product.price) %></span>
    <%= form_tag({:action=>'add_to_cart', :id=>product}, :remote=>true) do %>
    <%= submit_tag I18n.t('main.button.add') %>
    <% end %>
  </div>
</div>
<% end %>